//
//  LWNavController.m
//  1.28  weibo
//
//  Created by mac on 15/2/1.
//  Copyright (c) 2015年 mac. All rights reserved.
//

#import "LWNavController.h"

@interface LWNavController ()

@end

@implementation LWNavController

//当此类第一次加载的时候会被调用
+ (void)initialize{

    //1.取出导航条itme的外观
    UIBarButtonItem *itme = [UIBarButtonItem appearance];
    //2.设置在普通状态下的按钮颜色
    NSMutableDictionary *md = [NSMutableDictionary dictionary];
    md[NSForegroundColorAttributeName] = [UIColor orangeColor];
    [itme setTitleTextAttributes:md forState:UIControlStateNormal];
    //3.取出在高粱时候的按钮的颜色
    NSMutableDictionary *highColor = [NSMutableDictionary dictionary];
    highColor[NSForegroundColorAttributeName] = [UIColor greenColor];
    [itme setTitleTextAttributes:highColor forState:UIControlStateHighlighted];
    //4.取在不可用的时候的颜色
    NSMutableDictionary *cannotSelect = [NSMutableDictionary dictionary];
    cannotSelect[NSForegroundColorAttributeName] = [UIColor grayColor];
    [itme setTitleTextAttributes:cannotSelect forState:UIControlStateDisabled];
    

}
- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated{

    [super pushViewController:viewController animated:animated];
    
    
    
    
}
@end
